﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaffoHat.Core
{
    public class Glasses
    {
        private IList<Glass> glasses;

        public Glasses()
        {
            glasses = new List<Glass>();
            glasses.Add(new Glass(DiceFace.One));
            glasses.Add(new Glass(DiceFace.Two));
            glasses.Add(new Glass(DiceFace.Three));
            glasses.Add(new Glass(DiceFace.Four));
            glasses.Add(new Glass(DiceFace.Five));
            glasses.Add(new Glass(DiceFace.Six));
        }

        public Glass this[DiceFace face]
        {
            get
            {
                int indexFace = (int)face - 1;
                return glasses[indexFace];
            }
        }

        public Glass One 
        { 
            get { return glasses[0];} 
        }
        public Glass Two
        {
            get { return glasses[1]; }
        }
        public Glass Three
        {
            get { return glasses[2]; }
        }
        public Glass Four
        {
            get { return glasses[3]; }
        }
        public Glass Five
        {
            get { return glasses[4]; }
        }
        public Glass Six
        {
            get { return glasses[5]; }
        }

    }
}
